package business.employee.entities;

import employee.entities.EmployeeVO;

public class Employee {

	private String password, name, lastName;
	private int id;
	private int employeeType;

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getLastName() {
		return lastName;
	}

	public void setLastName(String lastName) {
		this.lastName = lastName;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public int getEmployeeType() {
		return employeeType;
	}

	public void setEmployeeType(int employeeType) {
		this.employeeType = employeeType;
	}

	public Employee(String password, String name, String lastName, int id,
			int employeeType) {
		this.name = name;
		this.lastName = lastName;
		this.id = id;
		this.employeeType = employeeType;
		this.password=password;
	}

	public Employee(String name, String lastName, int id, int employeeType) {
		this.name = name;
		this.lastName = lastName;
		this.id = id;
		this.employeeType = employeeType;
	}

	public Employee(EmployeeVO emp) {
		if (emp != null) {
			this.password = emp.getPassword();
			this.name = emp.getName();
			this.lastName = emp.getLastName();
			this.id = emp.getId();
			this.employeeType = emp.getEmployeeType();
		}
	}

	public EmployeeVO toVO() {
		return new EmployeeVO(this.name, this.lastName, this.id,
				this.employeeType);
	}

}
